/*
 * Copyright 2018 Shanxi Lu'an Taihang Laihui Net Tech co.,LTD.
 */
package src.com.bjsxt.height.design014_test;

import src.com.bjsxt.height.design014_test.Data;

/**
 * Description:
 *
 * @author wzz
 * @since: 1.0
 * Create Date Time: 2018/10/30 17:02
 * Update Date Time:
 */
public class RealData implements Data {
    private String result;

    public RealData(String str){
        System.out.println("这是一个耗时操作,根据"+str+"查询");
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("查询完毕,获取结果");
        result = "查询结果";
    }
    @Override
    public String getRequest() {
        return result;
    }
}
